import java.util.Scanner;

public class prac {
    public static void main(String[] args) {

        Scanner ipt = new Scanner(System.in);
        System.out.println("金字塔有几层： ");
        int n = ipt.nextInt();

        for(int i=1 ; i<=n ; i++){
            for(int For=i ; For<=n ; For++){
                System.out.print(" ");
            }

            for(int j=1 ; j <= i ; j++){
                System.out.print(" ");
                System.out.print("*");
            }
            System.out.println();

        }
    }
}
